from django.db import models

# Create your models here.
class Temperature(models.Model):
    id = models.AutoField('记录编号', primary_key=True)
    title = models.CharField('通知标题', max_length=32, null=False)
    detail = models.CharField('通知详情', max_length=125, null=False)
    createTime = models.CharField('通知时间', db_column='create_time', max_length=19)
    class Meta:
        db_table = 'temperature'
class Rainfull(models.Model):
    id = models.AutoField('记录编号', primary_key=True)
    createTime = models.CharField('通知时间', db_column='create_time', max_length=10)
    confirm = models.IntegerField('累计确诊', null=False)
    class Meta:
        db_table = 'rain'
